package com.itheima.mapper;

import com.itheima.dto.UserDto;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author CSY
 * 2022/5/18    15:54
 */
@Mapper
public interface UserMapper {

    /**
     * 查询是否为新用户
     * @param phone
     * @return
     */
    UserDto selectByPhone(@Param("phone") String phone);

    /**
     * 新增新用户
     * @param userDto
     * @return
     */
    int addUser(UserDto userDto);
}
